package com.oa.admin.entity;


import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.enums.IdType;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import java.io.Serializable;


import java.util.Date;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;

import java.io.Serializable;

import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 认证管理
 * </p>
 *
 * @author syb123
 * @since 2019-01-22
 */
@Data
@TableName("admin_certification")
@ApiModel(value = "认证管理")
public class Certification extends Model<Certification> {

    private static final long serialVersionUID = 1L;


    @ApiModelProperty(value = "主键")
    @TableId(value = "id", type = IdType.UUID)
    private String id;

    @ApiModelProperty(value = "类别")
    private String certificationType;

    @ApiModelProperty(value = "认证届数")
    private String certificationCount;

    @ApiModelProperty(value = "负责人id(用户id)")
    private String principalId;

    @ApiModelProperty(value = "费用")
    private String cost;

    @ApiModelProperty(value = "付款条件")
    private String paymentTerms;

    @ApiModelProperty(value = "备注")
    private String remark;

    @ApiModelProperty(value = "认证结果(1-申请中 2-成功 3-失败)")
    private Integer certificationResult;

    @ApiModelProperty(value = "启动时间")
    private Date startTime;

    @ApiModelProperty(value = "提前提醒天数")
    private Integer advanceDayNum;

    @ApiModelProperty(value = "认证状态(1-未启动 2-进行中 3-已完成)")
    private Integer certificationState;

    @ApiModelProperty(value = "是否删除 1-已删除 2-未删除")
    private Integer isDeleted;


    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}